// eslint-disable-next-line strict
const { Service } = require('egg');

class HomeService extends Service {
  async find(uid) {
    const user = await this.app.mysql.get('user_Info', { id: uid });
    return { user };
  }
  async findAll() {
    const users = await this.app.mysql.select('user_Info');
    return { users };
  }
}
module.exports = HomeService;
